package com.listeningframework.boot.autoconfigure.orm.mybatis;

import org.apache.ibatis.session.ExecutorType;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 *
 * Mybatis Properties
 *
 * @author listening
 * @version $Id: ListeningMyBatisProperties.java, v 0.1 2015年3月27日 下午10:00:16 listening Exp $
 */
@ConfigurationProperties(prefix = "listening.mybatis")
public class MyBatisProperties {
    /**
     * 显示SQL
     */
    private boolean      showSql = false;
    /**
     * Execution mode for {@link org.mybatis.spring.SqlSessionTemplate}.
     */
    private ExecutorType executorType;

    /**
     * Getter method for property <tt>showSql</tt>.
     *
     * @return property value of showSql
     */
    public boolean isShowSql() {
        return showSql;
    }

    /**
     * Setter method for property <tt>showSql</tt>.
     *
     * @param showSql value to be assigned to property showSql
     */
    public void setShowSql(boolean showSql) {
        this.showSql = showSql;
    }

    /**
     * Getter method for property <tt>executorType</tt>.
     *
     * @return property value of executorType
     */
    public ExecutorType getExecutorType() {
        return executorType;
    }

    /**
     * Setter method for property <tt>executorType</tt>.
     *
     * @param executorType value to be assigned to property executorType
     */
    public void setExecutorType(ExecutorType executorType) {
        this.executorType = executorType;
    }

}
